package com.example.pipline.yu.activity;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
public class PipelineService {
    @Transactional(rollbackFor = Exception.class)
    public void executePipeline(List<Node> nodes) throws Exception {
        for (Node node : nodes) {
            node.execute();
        }
    }
}